Direction cosines of a line passing through two points